package com.definesys.smecrailtransit.module.SiteDetails.dialog;

import android.app.Dialog;
import android.content.Context;
import android.databinding.DataBindingUtil;

import android.os.Bundle;
import android.view.LayoutInflater;

import com.definesys.smecrailtransit.R;
import com.definesys.smecrailtransit.databinding.DialogSiteParamBinding;
import com.definesys.smecrailtransit.module.SiteDetails.bean.EleParamentBean;

/**
 * Created by cjy on 2018/3/7.
 */

public class SiteParamDialog extends Dialog {
    private DialogSiteParamBinding dialogSiteParamBinding;
    private EleParamentBean data;


    public SiteParamDialog(Context context,int themeResId, EleParamentBean eleParamentBean) {
        super(context, themeResId);
        dialogSiteParamBinding = DataBindingUtil.inflate(LayoutInflater.from(context), R.layout.dialog_site_param,null,false);
        data = eleParamentBean;
        dialogSiteParamBinding.setData(data);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(dialogSiteParamBinding.getRoot());
    }

    private void _initView(){

    }

}
